<?php
//1903010328 设置服务器连接参数
 // $serverName = "127.0.0.1";
$serverName = "localhost";
$userName = "root";
$password = "12345678";
$db = "mamx_school01";

// 1903010328 连接对象的创建
$conn = new mysqli($serverName,$userName,$password,$db);
if ($conn->connect_error) {
 //1903010328 连接失败
 die("连接失败原因为：" .$conn->connect_error);
}
// echo "连接成功";
$conn->set_charset("utf8");